import React ,{useRef,useEffect} from 'react'
import { Cell, Dialog } from 'react-vant'
import "./index.css"

export default () => {
  const inputt = useRef(null)
  useEffect(() => {

  }, [])
  return (
    <>
      <Cell style={{ textAlign: 'center', marginTop: '10px' }}
        title='兑换优惠券'
        onClick={() =>
          Dialog.alert({
            title: '兑换优惠券',
            closeable: true,
            theme: 'round-button',
            message: <input type="text" placeholder='请输入兑换码' style={{border:'none',background:"rgb(247,247,247)",height:40,width:250}} maxLength='8' ref={inputt} onChange={() => {
            }} />
          })
        }
      />
    </>
  )
}
